/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Ethnicity Hispanic Central American</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15854 (C-0-T15836-S15837-S15854-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getEthnicityHispanicCentralAmerican()
 * @model extendedMetaData="name='EthnicityHispanicCentralAmerican'"
 * @generated
 */
public enum EthnicityHispanicCentralAmerican implements Enumerator {
	/**
	 * The '<em><b>21550</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21550_VALUE
	 * @generated
	 * @ordered
	 */
	_21550(0, "_21550", "2155-0"),

	/**
	 * The '<em><b>21634</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21634_VALUE
	 * @generated
	 * @ordered
	 */
	_21634(1, "_21634", "2163-4"),

	/**
	 * The '<em><b>21626</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21626_VALUE
	 * @generated
	 * @ordered
	 */
	_21626(2, "_21626", "2162-6"),

	/**
	 * The '<em><b>21568</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21568_VALUE
	 * @generated
	 * @ordered
	 */
	_21568(3, "_21568", "2156-8"),

	/**
	 * The '<em><b>21576</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21576_VALUE
	 * @generated
	 * @ordered
	 */
	_21576(4, "_21576", "2157-6"),

	/**
	 * The '<em><b>21584</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21584_VALUE
	 * @generated
	 * @ordered
	 */
	_21584(5, "_21584", "2158-4"),

	/**
	 * The '<em><b>21592</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21592_VALUE
	 * @generated
	 * @ordered
	 */
	_21592(6, "_21592", "2159-2"),

	/**
	 * The '<em><b>21600</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21600_VALUE
	 * @generated
	 * @ordered
	 */
	_21600(7, "_21600", "2160-0"),

	/**
	 * The '<em><b>21618</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21618_VALUE
	 * @generated
	 * @ordered
	 */
	_21618(8, "_21618", "2161-8");

	/**
	 * The '<em><b>21550</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21550</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21550
	 * @model literal="2155-0"
	 * @generated
	 * @ordered
	 */
	public static final int _21550_VALUE = 0;

	/**
	 * The '<em><b>21634</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21634</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21634
	 * @model literal="2163-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21634_VALUE = 1;

	/**
	 * The '<em><b>21626</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21626</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21626
	 * @model literal="2162-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21626_VALUE = 2;

	/**
	 * The '<em><b>21568</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21568</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21568
	 * @model literal="2156-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21568_VALUE = 3;

	/**
	 * The '<em><b>21576</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21576</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21576
	 * @model literal="2157-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21576_VALUE = 4;

	/**
	 * The '<em><b>21584</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21584</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21584
	 * @model literal="2158-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21584_VALUE = 5;

	/**
	 * The '<em><b>21592</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21592</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21592
	 * @model literal="2159-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21592_VALUE = 6;

	/**
	 * The '<em><b>21600</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21600</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21600
	 * @model literal="2160-0"
	 * @generated
	 * @ordered
	 */
	public static final int _21600_VALUE = 7;

	/**
	 * The '<em><b>21618</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21618</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21618
	 * @model literal="2161-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21618_VALUE = 8;

	/**
	 * An array of all the '<em><b>Ethnicity Hispanic Central American</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EthnicityHispanicCentralAmerican[] VALUES_ARRAY =
		new EthnicityHispanicCentralAmerican[] {
			_21550,
			_21634,
			_21626,
			_21568,
			_21576,
			_21584,
			_21592,
			_21600,
			_21618,
		};

	/**
	 * A public read-only list of all the '<em><b>Ethnicity Hispanic Central American</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EthnicityHispanicCentralAmerican> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Central American</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicCentralAmerican get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicCentralAmerican result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Central American</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicCentralAmerican getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EthnicityHispanicCentralAmerican result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Ethnicity Hispanic Central American</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EthnicityHispanicCentralAmerican get(int value) {
		switch (value) {
			case _21550_VALUE: return _21550;
			case _21634_VALUE: return _21634;
			case _21626_VALUE: return _21626;
			case _21568_VALUE: return _21568;
			case _21576_VALUE: return _21576;
			case _21584_VALUE: return _21584;
			case _21592_VALUE: return _21592;
			case _21600_VALUE: return _21600;
			case _21618_VALUE: return _21618;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EthnicityHispanicCentralAmerican(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EthnicityHispanicCentralAmerican
